import { createRouter, createWebHistory } from "vue-router";
import { qiankunWindow } from "vite-plugin-qiankun/dist/helper";

export default createRouter({
  history: createWebHistory(
    qiankunWindow.__POWERED_BY_QIANKUN__ ? "/lowcode/" : "/"
  ),
  routes: [
    {
      path: "/index",
      component: () => import("@/views/index.vue"),
    },
    {
      path: "/preview",
      component: () => import("@/views/preview/index.vue"),
    },
  ],
});
